package models

import (
	"github.com/goravel/framework/database/orm"
	"github.com/goravel/framework/support/carbon"
)

type User struct {
	orm.Model
	Name              string
	Email             string
	Password          string
	PwdUpdateAt       carbon.DateTime
	Phone             string
	Avatar            string
	AccumulatedPoints int
	Level             int
	Status            int
	Gender            int
	LastLoginIp       string
	LastLoginTime     carbon.DateTime
}

func NewUser() *User {
	return &User{}
}

func (r *User) TableName() string {
	return "user"
}
